package LECONGHAU.ARRAY.EXCERCISE.BAI10;

import java.util.Scanner;

public class VIEWS {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int n;
		System.out.println("moi nhap vao n");
		Scanner sc=new Scanner(System.in);
		n=sc.nextInt();
String[][] array =new String[n][10];
       String[] arraykq=new String[10];
       
       for(int k=0;k<10;k++){
    	   System.out.println("moi nhap vao dap an cau thu "+k+"la");
    	   sc=new Scanner(System.in);
    	   arraykq[k]=sc.nextLine();
       }
       for(int i=0;i<n;i++){
    	   System.out.println("dap an cua hoc sinh thu "+i+"la");
    	   for(int j=0;j<10;j++){
    		   System.out.println("dap an cau "+j+"la");
    		   sc=new Scanner(System.in);
    		   array[i][j]=sc.nextLine();
    		 
    	   }
    	  
       }		
    		for(int i=0;i<n;i++){
    			int dem=0;
    			for(int j=0;j<10;j++){
    			if(array[i][j].equals(arraykq[j])){
    				dem++;
    				
    			}
    			
    			}	
    			System.out.println("diem cua hoc sinh thu "+i+" la"+dem);
    		
    	}
      
	}

}
